// https://nuxt.com/docs/api/configuration/nuxt-config
export default defineNuxtConfig({
  //默认开启ssr服务端渲染
  ssr: false,
  compatibilityDate: '2024-11-01',//compatibilityDate 是一个配置项，用于指定 Nuxt 应该兼容的日期。
  //开启调试工具
  devtools: { enabled: true },
  //应用模块
  modules: ['@vant/nuxt'],
  // 移动端适配
  postcss: {
    plugins: {
      'postcss-px-to-viewport': {
        viewportWidth: 375,
      },
    }
  },
  build: {
    transpile: ["vuetify"],
  },
  vite: {
    define: {
      "process.env.DEBUG": false,
    },
  },

  nitro: {
    serveStatic: true,
  },

  devServerHandlers: [],

  hooks: {
  },

  typescript: {
    shim: false
  },
})
